<script>on openBackgroundglobal mapLocCL, footprintsCL, completeCLif there is a window "mainMenu" then close window "mainMenu"repeat with x = 1 to the number of bg buttonsset the icon of bg button x to 0if the short name of bg button x is in footprintsCL thenset the style of bg button x to transparentelse set the style of bg button x to opaqueend repeatif mapLocCL is not empty then ¬set the icon of bg button mapLocCL to "openCrossGray"if the number of items in footprintsCL > 8 and completeCL ≠ "done" thenput "done" into completeCLanswer "Congratulations! You have completed this stack."end ifend openBackground</script>